#!/bin/sh

log()
{
  echo "$*" >> /tmp/build-log.txt
}

# prepare
log "Preparing..."
cd /tmp
rm -fr build-project-tmp
mkdir build-project-tmp
cd build-project-tmp

# check out repo
log "Check out code"
svn checkout http://project-android-game.googlecode.com/svn/trunk/ project-android-game-read-only

# go to dir
log "Go into client src dir"
cd project-android-game-read-only
cd MulitSnake

# build 
echo I win, fungerar inte om 1 sekunder
sleep 1 
ant -buildfile build.xml


# test 
# ant test


